package puzzeldoolhof;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;

import weighteddirectedgraph.WeightedDirectedGraph;

public class Apl 
{
	private static Position pos1;
	private static Position pos2;
	private static State speler;
	private static List<Position> positions;
	private static WeightedDirectedGraph<Position, Color> graaf;

	public static void main(String[] args)
	{
		Game game = new Game();
		positions = new ArrayList<Position>();
		game.setMaze( buildMaze() ) ;
		System.out.println( game.findPath( speler, new Position(7, Color.BLACK) ) );

	}
	
	public static WeightedDirectedGraph<Position, Color> buildMaze()
	{
		graaf = new  WeightedDirectedGraph<Position, Color>();
		positions.add(new Position( 1, Color.BLACK ));
		positions.add(new Position( 2, Color.RED ));
		speler = new State( positions.get(0), positions.get(0)  );
		graaf.addItem( positions.get(0) );
		graaf.addEdge( positions.get(0) , positions.get(1) , Color.BLACK );

		return graaf;
	}

}
